﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Sahit.iSoilHotel.Infrastructure.Web.Helper
{
    public partial interface IWebHelper
    {
        string GetUrlReferrer();

        string GetCurrentIpAddress();

        string GetThisPageUrl(bool includeQueryString);

        string GetThisPageUrl(bool includeQueryString, bool useSsl);

        bool IsCurrentConnectionSecured();

        bool SslEnabled();

        string ServerVariables(string name);

        bool IsStaticResource(HttpRequest request);

        string MapPath(string path);

        string ModifyQueryString(string url, string queryStringModification, string anchor);

        string RemoveQueryString(string url, string queryString);

        T QueryString<T>(string name);

        void RestartAppDomain(bool makeRedirect = false, string redirectUrl = "");

        bool IsSearchEngine(HttpContextBase context);

        bool IsRequestBeingRedirected { get; }

        bool IsPostBeingDone { get; set; }
    }
}
